"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const infoerr_1 = require("./infoerr");
const errhandle = (err, req, res, next) => {
    const status = err.status || 500;
    const msg = err.message || "服务端错误";
    res.status(status);
    (0, infoerr_1.err)(res, msg);
};
exports.default = errhandle;
